#include"tcpServer.hpp"
using namespace std;
static void Usage(string proc){
    cout<<"Usag :"<<proc<<"server port"<<endl;
}
int main(int argc,char* argv[]){
    if(argc!=2){
        Usage(argv[0]);
        exit(1);
    }

    tcpServer ts(atoi(argv[1]));
    ts.initServer();
    ts.start();
}
